﻿using System;
using System.Collections.Generic;
using System.Text;
using SSAT.Commands;

namespace SSAT.Utils.Freezer
{
    internal sealed class FreezedCommand : FreezedItem
    {
        private CommandBase _command;

        public FreezedCommand(CommandBase command)
        {
            Verification.CheckArgumentForNull(command, "command");
            _command = command;
        }

        public override void Enable()
        {
            _command.Enabled = true;
        }

        public override void Disable()
        {
            _command.Enabled = false;
        }
    }
}
